package com.kgc.activityprovider.service;

import com.kgc.activiti.pojo.WorkFlow;
import com.kgc.activiti.util.ResponseMsg;

import java.util.Map;

public interface WorkFlowService {
    //导出工作流
    ResponseMsg exportWorkerFlow(WorkFlow workFlow, String xml);

    ResponseMsg getWorkFlowList(Map<String, Object> paramMap);

    ResponseMsg showWorkFlow(String url);

    ResponseMsg editWorkFlow(WorkFlow workFlow,String xml);

    //String code, Integer type
    ResponseMsg startProcess(Map<String,Object> params);

    ResponseMsg selectWorkFlowByType(int type);

    //String code
    ResponseMsg competeTask(Map<String,Object> param);

    //检验工作流id是否存在或者为空
    ResponseMsg checkCodeExit(String code);

    //检验工作流Name是否存在或者为空
    ResponseMsg checkNameExit(String name);

    //检验单据类型工作流是否存在
    ResponseMsg checkTypeExit(int type);

    //部署工作流
    ResponseMsg deployWorkFlow(String url);

    //重新提交
    //String code, Integer type
    ResponseMsg reSubmit(Map<String,Object> params);
}
